import { defineComponent as v, ref as h, resolveComponent as c, createElementBlock as _, openBlock as u, createVNode as s } from "vue";
const y = [
  {
    id: 1,
    name: "示例数据1",
    category: "类型A",
    value: "这是第一条共享数据"
  },
  {
    id: 2,
    name: "示例数据2",
    category: "类型B",
    value: "这是第二条共享数据"
  },
  {
    id: 3,
    name: "示例数据3",
    category: "类型A",
    value: "这是第三条共享数据"
  }
], m = { class: "tree-container" }, b = /* @__PURE__ */ v({
  __name: "DeptTree",
  setup(e) {
    const l = h(""), t = (a) => {
      console.log(a);
    }, o = [
      {
        label: "Level one 1",
        children: [
          {
            label: "Level two 1-1",
            children: [
              {
                label: "Level three 1-1-1"
              }
            ]
          }
        ]
      },
      {
        label: "Level one 2",
        children: [
          {
            label: "Level two 2-1",
            children: [
              {
                label: "Level three 2-1-1"
              }
            ]
          },
          {
            label: "Level two 2-2",
            children: [
              {
                label: "Level three 2-2-1"
              }
            ]
          }
        ]
      },
      {
        label: "Level one 3",
        children: [
          {
            label: "Level two 3-1",
            children: [
              {
                label: "Level three 3-1-1"
              }
            ]
          },
          {
            label: "Level two 3-2",
            children: [
              {
                label: "Level three 3-2-1"
              }
            ]
          }
        ]
      }
    ], n = {
      children: "children",
      label: "label"
    };
    return (a, r) => {
      const d = c("el-input"), i = c("el-tree");
      return u(), _("div", m, [
        s(d, {
          modelValue: l.value,
          "onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p),
          style: { width: "240px" },
          placeholder: "请输入部门"
        }, null, 8, ["modelValue"]),
        s(i, {
          style: { "max-width": "600px" },
          data: o,
          props: n,
          onNodeClick: t
        })
      ]);
    };
  }
}), L = (e, l) => {
  const t = e.__vccOpts || e;
  for (const [o, n] of l)
    t[o] = n;
  return t;
}, w = /* @__PURE__ */ L(b, [["__scopeId", "data-v-6e8699fc"]]), f = (e) => (e.install = (l) => {
  l.component(e.name || e.name, e);
}, e), g = f(w);
export {
  g as DeptTree,
  y as insFlow
};
